import express from 'express';
import { AuthController } from '../controllers/authController.js';

const router = express.Router();
const authController = new AuthController();

// 发送验证码
router.post('/send-sms-code', authController.sendSMSCode.bind(authController));

// 手机号验证码登录
router.post('/login-with-phone', authController.loginWithPhone.bind(authController));

// 密码登录
router.post('/login', authController.login.bind(authController));

// 用户注册
router.post('/register', authController.register.bind(authController));

export default router;